package com.base.common.edu.entity;

import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.util.HashSet;
import java.util.Set;

/**
 * @Author Maple.Chen
 * @Description 权限定义实体
 * @Date 19:11 2021/1/26
 **/
@Data
@ApiModel(description = "权限定义实体")
@JsonIgnoreProperties(value = {"handler"})
public class SysPower implements Serializable {

    private static final long serialVersionUID = -5560760401879431852L;
    @ApiModelProperty( value = "权限唯一标识")
    private String powerId;
    @ApiModelProperty( value = "权限类型")
    private Integer powerType;
    @ApiModelProperty( value = "权限名称")
    private String powerName;
    @ApiModelProperty( value = "权限到菜单映射集合")
    private Set<SysMenu> sysMenus = new HashSet<SysMenu>();
    @ApiModelProperty( value = "权限到角色映射集合")
    private Set<SysRole> sysRoles = new HashSet<SysRole>();

}
